package org.metasketch.graphics.language.xml;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;

@XStreamAlias("slot")
public class Slot extends NamedEntity {

	@XStreamAsAttribute
	String type; // optional

	@XStreamAsAttribute
	String value; // expression

	@XStreamAsAttribute
	boolean editable = false;

	@XStreamAsAttribute
	String writeExpression; // this is only valid if editable = true, and its
							// only optional

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public boolean isEditable() {
		return editable;
	}

	public void setEditable(boolean editable) {
		this.editable = editable;
	}

	public String getWriteExpression() {
		return writeExpression;
	}

	public void setWriteExpression(String writer) {
		this.writeExpression = writer;
	}

}
